package _1._0._0._127.ormrpc.services.WSPDMImportFacade;

public class WSPDMImportFacadeSrvProxyProxy implements WSPDMImportFacadeSrvProxy {
    private String _endpoint = null;
    private WSPDMImportFacadeSrvProxy wSPDMImportFacadeSrvProxy = null;

    public WSPDMImportFacadeSrvProxyProxy() {
        _initWSPDMImportFacadeSrvProxyProxy();
    }

    public WSPDMImportFacadeSrvProxyProxy(String endpoint) {
        _endpoint = endpoint;
        _initWSPDMImportFacadeSrvProxyProxy();
    }

    private void _initWSPDMImportFacadeSrvProxyProxy() {
        try {
            wSPDMImportFacadeSrvProxy = (new WSPDMImportFacadeSrvProxyServiceLocator()).getWSPDMImportFacade();
            if (wSPDMImportFacadeSrvProxy != null) {
                if (_endpoint != null)
                    ((javax.xml.rpc.Stub) wSPDMImportFacadeSrvProxy)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
                else
                    _endpoint = (String) ((javax.xml.rpc.Stub) wSPDMImportFacadeSrvProxy)._getProperty("javax.xml.rpc.service.endpoint.address");
            }

        } catch (javax.xml.rpc.ServiceException serviceException) {
        }
    }

    public String getEndpoint() {
        return _endpoint;
    }

    public void setEndpoint(String endpoint) {
        _endpoint = endpoint;
        if (wSPDMImportFacadeSrvProxy != null)
            ((javax.xml.rpc.Stub) wSPDMImportFacadeSrvProxy)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);

    }

    public WSPDMImportFacadeSrvProxy getWSPDMImportFacadeSrvProxy() {
        if (wSPDMImportFacadeSrvProxy == null)
            _initWSPDMImportFacadeSrvProxyProxy();
        return wSPDMImportFacadeSrvProxy;
    }

    public String importData(String pdmType, String dataType, String xml) throws java.rmi.RemoteException, wspdmimportfacade.client.WSInvokeException {
        if (wSPDMImportFacadeSrvProxy == null)
            _initWSPDMImportFacadeSrvProxyProxy();
        return wSPDMImportFacadeSrvProxy.importData(pdmType, dataType, xml);
    }


}